//
//  BMSPrivacyPopupView.h
//  WDBMS
//
//  Created by YeJary on 2025/5/12.
//

#import <UIKit/UIKit.h>
#import "BMSBasePopupView.h"

NS_ASSUME_NONNULL_BEGIN

typedef void(^BMSPrivacyDecisionHandler)(BOOL agreed);

@interface BMSPrivacyPopupView : BMSBasePopupView

@property (nonatomic,copy) BMSPrivacyDecisionHandler completion;

/// 显示弹窗（封装动画、添加到 keyWindow）
- (void)showWithCompletion:(BMSPrivacyDecisionHandler)completion;

/// 手动关闭弹窗
- (void)dismiss;

/// 统一设置协议链接（富文本内容）
- (void)configureWithUserProtocolURL:(NSURL *)userURL
                      privacyURL:(NSURL *)privacyURL;

@end

NS_ASSUME_NONNULL_END
